<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="navbar.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <title>My JSP 'project.jsp' starting page</title>
    <link rel="stylesheet" type="text/css" href="styles/css/bootstrap.min.css" />
    <script type="text/javascript" src="styles/jquery/jquery.js"></script>
  </head>
  <body class="body"> 
   <div class="container" style="margin-top:60px;width:960px;margin-left:auto;margin-right:auto;">
		<div class="row" >&rdquo;&ldquo;&nbsp; 
 
			 
		 
		 
		<!-- 导入左侧部分 -->
		<jsp:include page="side.jsp">
			<jsp:param value="new" name="tag"/>
		</jsp:include>
		
		


			<div class="span6">
			  
				<ul style="margin-bottom:0px;border-radius: 3px 3px 0 0;" class="breadcrumb">
					<li class="active">
						<i class="icon-th"></i>你在想什么？
					</li>
				</ul>
				<div class="wall" style="border:1px solid #ddd">
					<form style="margin:20px" action="mind.jspx?m=addmind" method="post" name="myform">
						<textarea rows="3" style="width:415px" id="" name="desc"></textarea>
						<button class="btn btn-primary" id="btn">发布</button>
					</form>
				</div>
				<ul style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:20px" class="breadcrumb">
					<li class="active">
						<i class="icon-th"></i>信息流
					</li>
				</ul>
				<div class="wall" style="border:1px solid #ddd;height:overflow;padding:10px">
					<c:forEach items="${mindlist.result }" var="mind">
						<div style="background-image:url(styles/img/color.png);margin-bottom:10px;padding:5px 5px 20px 5px;border:1px solid #f5f5f5;border-radius:5px;word-wrap:break-word" >
						 	<span style="color:#999"><img width="30" height="30" src="img.jspx?img=${mind.user.picture}"/>${mind.user.nickName}:</span>
						 		${mind.desc }
						 		<br/>
						 	<small class="pull-right" style="color:#999">${mind.time }</small>
						</div>
						
					</c:forEach>
					
					
						 ${mindlist.pageNum }/${mindlist.totalPages }
					   	<c:choose>
					   		<c:when test="${mindlist.pageNum==1 }">
					   			首页
					   		</c:when>
					   		<c:otherwise>
					   			<a href="mind.jspx?p=1">首页</a>
					   		</c:otherwise>
					   	</c:choose>
					   	
					   	<c:choose>
					   		<c:when test="${mindlist.pageNum==1 }">
					   			上一页
					   		</c:when>
					   		<c:otherwise>
					   			<a href="mind.jspx?p=${mindlist.pageNum -1}">上一页</a>
					   		</c:otherwise>
					   	</c:choose>
					   	<c:choose>
					   		<c:when test="${mindlist.pageNum==mindlist.totalPages }">
					   			下一页
					   		</c:when>
					   		<c:otherwise>
					   			<a href="mind.jspx?p=${mindlist.pageNum +1}">下一页</a>
					   		</c:otherwise>
					   	</c:choose>
					    
					    <c:choose>
					    	<c:when test="${mindlist.pageNum==mindlist.totalPages }">
					    		尾页
					    	</c:when>
					    	<c:otherwise>
					    		<a href="mind.jspx?p=${mindlist.totalPages }">尾页</a>
					    	</c:otherwise>
					    </c:choose>
					   	
					
				</div>
				<br/>
				<br/>
			</div>
		
			<div class="span3">
				<div class="box" style="border: 1px solid #ddd">
					<div class="head" style=" width:200px;height:25px;border-bottom:1px solid #ddd;margin-left:10px"><span style="font-size:14px;color:#333;font-weight:bold;line-height:25px">我的任务</span></div>
					
					<ul>
						<c:forEach items="${requestScope.taskpage.result }" var="t">
							<li>${t.taskName }&nbsp;${t.state }&nbsp;${t.startTime }&nbsp;${t.endTime }&nbsp;${t.level }</li>
						</c:forEach>
					</ul>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(document).ready(function(){
			$("#btn").click(function(){
				$("myform").submit();
			});
		});
	
	</script>
  </body>
</html>
